<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.0.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"leonloss.gitee.io","root":"/blog/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"flat"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":true,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="PHP 三种方式实现链式操作在php中有很多字符串函数，例如要先过滤字符串收尾的空格，再求出其长度，一般的写法是： strlen(trim($str)) 如果要实现类似js中的链式操作，比如像下面这样应该怎么写？ $str-&gt;trim()-&gt;strlen() 下面分别用三种方式来实现： 方法一、使用魔法函数__call结合call_user_func来实现思想：首先定义一个字符串类St">
<meta property="og:type" content="article">
<meta property="og:title" content="Leno‘s Blog">
<meta property="og:url" content="https://leonloss.gitee.io/blog/2019/04/16/PHP%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F%E5%AE%9E%E7%8E%B0%E9%93%BE%E5%BC%8F%E6%93%8D%E4%BD%9C/index.html">
<meta property="og:site_name" content="Leno‘s Blog">
<meta property="og:description" content="PHP 三种方式实现链式操作在php中有很多字符串函数，例如要先过滤字符串收尾的空格，再求出其长度，一般的写法是： strlen(trim($str)) 如果要实现类似js中的链式操作，比如像下面这样应该怎么写？ $str-&gt;trim()-&gt;strlen() 下面分别用三种方式来实现： 方法一、使用魔法函数__call结合call_user_func来实现思想：首先定义一个字符串类St">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-04-16T05:33:23.372Z">
<meta property="article:modified_time" content="2022-02-28T09:47:59.627Z">
<meta property="article:author" content="黄浪涛">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://leonloss.gitee.io/blog/2019/04/16/PHP%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F%E5%AE%9E%E7%8E%B0%E9%93%BE%E5%BC%8F%E6%93%8D%E4%BD%9C/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title> | Leno‘s Blog</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?02d809890729e144c33e6640ae09a731";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

  
  
  
    <script async src="/blog/js/cursor/fireworks.js"></script>
  



<link rel="alternate" href="/blog/atom.xml" title="Leno‘s Blog" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Leno‘s Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://leonloss.gitee.io/blog/2019/04/16/PHP%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F%E5%AE%9E%E7%8E%B0%E9%93%BE%E5%BC%8F%E6%93%8D%E4%BD%9C/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/log2.png">
      <meta itemprop="name" content="黄浪涛">
      <meta itemprop="description" content="看  那个小胖子~">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Leno‘s Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-04-16 13:33:23" itemprop="dateCreated datePublished" datetime="2019-04-16T13:33:23+08:00">2019-04-16</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-02-28 17:47:59" itemprop="dateModified" datetime="2022-02-28T17:47:59+08:00">2022-02-28</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="PHP-三种方式实现链式操作"><a href="#PHP-三种方式实现链式操作" class="headerlink" title="PHP 三种方式实现链式操作"></a><a target="_blank" rel="noopener" href="https://segmentfault.com/a/1190000008159324">PHP 三种方式实现链式操作</a></h1><p>在php中有很多字符串函数，例如要先过滤字符串收尾的空格，再求出其长度，一般的写法是：</p>
<p><code>strlen(trim($str))</code></p>
<p>如果要实现类似js中的链式操作，比如像下面这样应该怎么写？</p>
<p><code>$str-&gt;trim()-&gt;strlen()</code></p>
<p>下面分别用三种方式来实现：</p>
<h4 id="方法一、使用魔法函数-call结合call-user-func来实现"><a href="#方法一、使用魔法函数-call结合call-user-func来实现" class="headerlink" title="方法一、使用魔法函数__call结合call_user_func来实现"></a>方法一、使用魔法函数<code>__call</code>结合<code>call_user_func</code>来实现</h4><p><strong>思想：</strong>首先定义一个字符串类<code>StringHelper</code>，构造函数直接赋值value，然后链式调用<code>trim()</code>和<code>strlen()</code>函数，通过在调用的魔法函数<code>__call()</code>中使用<code>call_user_func</code>来处理调用关系，实现如下：</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="class"><span class="keyword">class</span> <span class="title">StringHelper</span> </span></span><br><span class="line"><span class="class"></span>&#123;</span><br><span class="line">    <span class="keyword">private</span> <span class="variable">$value</span>;</span><br><span class="line">    </span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">__construct</span>(<span class="params"><span class="variable">$value</span></span>)</span></span><br><span class="line"><span class="function">    </span>&#123;</span><br><span class="line">        <span class="variable language_">$this</span>-&gt;value = <span class="variable">$value</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">__call</span>(<span class="params"><span class="variable">$function</span>, <span class="variable">$args</span></span>)</span>&#123;</span><br><span class="line">        <span class="variable language_">$this</span>-&gt;value = <span class="title function_ invoke__">call_user_func</span>(<span class="variable">$function</span>, <span class="variable language_">$this</span>-&gt;value, <span class="variable">$args</span>[<span class="number">0</span>]);</span><br><span class="line">        <span class="keyword">return</span> <span class="variable language_">$this</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">strlen</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line">        <span class="keyword">return</span> <span class="title function_ invoke__">strlen</span>(<span class="variable language_">$this</span>-&gt;value);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="variable">$str</span> = <span class="keyword">new</span> <span class="title class_">StringHelper</span>(<span class="string">&quot;  sd f  0&quot;</span>);</span><br><span class="line"><span class="keyword">echo</span> <span class="variable">$str</span>-&gt;<span class="title function_ invoke__">trim</span>(<span class="string">&#x27;0&#x27;</span>)-&gt;<span class="title function_ invoke__">strlen</span>();```</span><br></pre></td></tr></table></figure>

<p>终端执行脚本：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">php test.php </span><br><span class="line">8</span><br></pre></td></tr></table></figure>

<h4 id="方法二、使用魔法函数-call结合call-user-func-array来实现"><a href="#方法二、使用魔法函数-call结合call-user-func-array来实现" class="headerlink" title="方法二、使用魔法函数__call结合call_user_func_array来实现"></a>方法二、使用魔法函数<code>__call</code>结合<code>call_user_func_array</code>来实现</h4><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&lt;?php</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="class"><span class="keyword">class</span> <span class="title">StringHelper</span> </span></span><br><span class="line"><span class="class"></span>&#123;</span><br><span class="line">    <span class="keyword">private</span> <span class="variable">$value</span>;</span><br><span class="line">    </span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">__construct</span>(<span class="params"><span class="variable">$value</span></span>)</span></span><br><span class="line"><span class="function">    </span>&#123;</span><br><span class="line">        <span class="variable language_">$this</span>-&gt;value = <span class="variable">$value</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">__call</span>(<span class="params"><span class="variable">$function</span>, <span class="variable">$args</span></span>)</span>&#123;</span><br><span class="line">        <span class="title function_ invoke__">array_unshift</span>(<span class="variable">$args</span>, <span class="variable language_">$this</span>-&gt;value);</span><br><span class="line">        <span class="variable language_">$this</span>-&gt;value = <span class="title function_ invoke__">call_user_func_array</span>(<span class="variable">$function</span>, <span class="variable">$args</span>);</span><br><span class="line">        <span class="keyword">return</span> <span class="variable language_">$this</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">strlen</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line">        <span class="keyword">return</span> <span class="title function_ invoke__">strlen</span>(<span class="variable language_">$this</span>-&gt;value);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="variable">$str</span> = <span class="keyword">new</span> <span class="title class_">StringHelper</span>(<span class="string">&quot;  sd f  0&quot;</span>);</span><br><span class="line"><span class="keyword">echo</span> <span class="variable">$str</span>-&gt;<span class="title function_ invoke__">trim</span>(<span class="string">&#x27;0&#x27;</span>)-&gt;<span class="title function_ invoke__">strlen</span>();</span><br></pre></td></tr></table></figure>

<p>说明：</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="title function_ invoke__">array_unshift</span>(<span class="keyword">array</span>,value1,value2,value3...)</span><br></pre></td></tr></table></figure>

<p><code>array_unshift()</code> 函数用于向数组插入新元素。新数组的值将被插入到数组的开头。</p>
<p><code>call_user_func()</code>和<code>call_user_func_array</code>都是动态调用函数的方法，区别在于参数的传递方式不同。</p>
<h4 id="方法三、不使用魔法函数-call来实现"><a href="#方法三、不使用魔法函数-call来实现" class="headerlink" title="方法三、不使用魔法函数__call来实现"></a>方法三、不使用魔法函数<code>__call</code>来实现</h4><p>只需要修改<code>_call()</code>为<code>trim()</code>函数即可：</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">public</span> <span class="function"><span class="keyword">function</span> <span class="title">trim</span>(<span class="params"><span class="variable">$t</span></span>)</span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">    <span class="variable language_">$this</span>-&gt;value = <span class="title function_ invoke__">trim</span>(<span class="variable language_">$this</span>-&gt;value, <span class="variable">$t</span>);</span><br><span class="line">    <span class="keyword">return</span> <span class="variable language_">$this</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>重点在于，返回$this指针，方便调用后者函数。</p>
<p>另外的参考：<a target="_blank" rel="noopener" href="https://segmentfault.com/a/1190000003069921?utm_source=APP&amp;utm_medium=iOS&amp;utm_campaign=socialShare">https://segmentfault.com/a/1190000003069921?utm_source=APP&amp;utm_medium=iOS&amp;utm_campaign=socialShare</a></p>

    </div>

    
    
    

      <footer class="post-footer">

        


        
    <div class="post-nav">
      <div class="post-nav-item"></div>
      <div class="post-nav-item">
    <a href="/blog/2022/02/23/hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A22/" rel="next" title="gitee+Hexo 搭建博客">
      gitee+Hexo 搭建博客 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#PHP-%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F%E5%AE%9E%E7%8E%B0%E9%93%BE%E5%BC%8F%E6%93%8D%E4%BD%9C"><span class="nav-number">1.</span> <span class="nav-text">PHP 三种方式实现链式操作</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%96%B9%E6%B3%95%E4%B8%80%E3%80%81%E4%BD%BF%E7%94%A8%E9%AD%94%E6%B3%95%E5%87%BD%E6%95%B0-call%E7%BB%93%E5%90%88call-user-func%E6%9D%A5%E5%AE%9E%E7%8E%B0"><span class="nav-number">1.0.0.1.</span> <span class="nav-text">方法一、使用魔法函数__call结合call_user_func来实现</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%96%B9%E6%B3%95%E4%BA%8C%E3%80%81%E4%BD%BF%E7%94%A8%E9%AD%94%E6%B3%95%E5%87%BD%E6%95%B0-call%E7%BB%93%E5%90%88call-user-func-array%E6%9D%A5%E5%AE%9E%E7%8E%B0"><span class="nav-number">1.0.0.2.</span> <span class="nav-text">方法二、使用魔法函数__call结合call_user_func_array来实现</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%96%B9%E6%B3%95%E4%B8%89%E3%80%81%E4%B8%8D%E4%BD%BF%E7%94%A8%E9%AD%94%E6%B3%95%E5%87%BD%E6%95%B0-call%E6%9D%A5%E5%AE%9E%E7%8E%B0"><span class="nav-number">1.0.0.3.</span> <span class="nav-text">方法三、不使用魔法函数__call来实现</span></a></li></ol></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="黄浪涛"
      src="/blog/images/log2.png">
  <p class="site-author-name" itemprop="name">黄浪涛</p>
  <div class="site-description" itemprop="description">看  那个小胖子~</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">3</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://gitee.com/Leonloss" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;Leonloss" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i></a>
      </span>
      <span class="links-of-author-item">
        <a href="https://www.zhihu.com/people/taoing" title="Zhihu → https:&#x2F;&#x2F;www.zhihu.com&#x2F;people&#x2F;taoing" rel="noopener" target="_blank"><i class="fab fa-zhihu fa-fw"></i></a>
      </span>
      <span class="links-of-author-item">
        <a href="/blog/atom.xml" title="RSS → &#x2F;atom.xml"><i class="fa fa-rss fa-fw"></i></a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">黄浪涛</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>


  
  <script size="300" alpha="0.6" zIndex="-1" src="//cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-ribbon@1/canvas-ribbon.js"></script>
  <script src="/blog/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/medium-zoom@1/dist/medium-zoom.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/pisces.js"></script>


<script src="/blog/js/next-boot.js"></script>




  




  
<script src="/blog/js/local-search.js"></script>













  

  

<script src="/blog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"jsonPath":"/blog/live2dw/assets/hijiki.model.json"},"display":{"position":"left","width":200,"height":400},"mobile":{"show":true},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
